﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Sibers Food Materialization</title>
    <?php include_http_metas() ?>
    <?php include_metas() ?>
    <?php include_title() ?>
    <link rel="shortcut icon" href="/favicon.ico" />
    <?php include_stylesheets() ?>
    <?php include_javascripts() ?>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="Place your description here" /> 
<meta name="keywords" content="put, your, keyword, here" /> 
<meta name="author" content="Templates.com - website templates provider" /> 
<link href="/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/js/jquery-ui-1.8.18.custom.min.js"></script>
<!--[if lt IE 7]>
   <script type="text/javascript" src="/js/ie_png.js"></script>
   <script type="text/javascript">
       ie_png.fix('.png, .logo h1, .box .left-top-corner, .box .right-top-corner, .box .left-bot-corner, .box .right-bot-corner, .box .border-left, .box .border-right, .box .border-top, .box .border-bot, .box .inner, .special dd, #contacts-form input, #contacts-form textarea');
   </script>
<![endif]-->
</head>

<body id="page1">
   <!-- header -->
   <div id="header">
      <div class="container">
         <div class="wrapper">
            <div class="logo">
               <h1><a href="<?= url_for('@viewproducts') ?>">Sibers Ashkana</a>
                   <?php if ($sf_user->isAuthenticated()): ?>
                   <span>Привет <?php echo $sf_user->getGuarduser()->getUsername(); ?>!</span>
                   <?php endif; ?>
                </h1>
            </div>
         </div>
         <ul class="nav">
             <?php if($sf_user->isSuperadmin()): ?>
             <li><a href="<?= url_for('@sf_guard_user') ?>">Пользователи</a></li>
             <?php endif; ?>
            <li><a href="<?= url_for('@viewproducts') ?>">Просмотр меню</a></li>
          <?php if($sf_user->isAuthenticated()): ?>
            <li><a href="<?= url_for('@view_order') ?>">Сегодняшний заказ</a></li>
            <li><a href="<?= url_for('@products') ?>">Продукты</a></li>
            <li><a href="<?= url_for('@sf_guard_signout') ?>">Выйти</a></li>
            
          <?php else: ?>
            <li><a href="<?= url_for('@user_registration') ?>">Регистрация</a></li>          
            <li><a href="<?= url_for('@sf_guard_signin') ?>">Войти</a></li>
          <?php endif; ?>
            <div class="clear"></div>
         </ul>
      </div>
   </div>
   <!-- content -->
   <div id="content">
       <div class="food_logo"></div>
      <div class="container">
         <div class="inside">
            <!-- box begin -->
            <div class="content">
                <div class="box alt">
                    <div class="left-top-corner">
                    <div class="right-top-corner">
                            <div class="border-top"></div>
                    </div>
                </div>
                <div class="border-left">
                    <div class="border-right">
                            <div class="inner">
                            <div class="wrapper">
                                <?php if ($sf_user->hasFlash('notice')): ?>
                                    <div class="flash_notice"><?php echo $sf_user->getFlash('notice') ?></div>
                                <?php endif; ?>
                                <?php if ($sf_user->hasFlash('error')): ?>
                                    <div class="flash_error"><?php echo $sf_user->getFlash('error') ?></div>
                                <?php endif; ?>
                                <?php echo $sf_content ?>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="left-bot-corner">
                    <div class="right-bot-corner">
                            <div class="border-bot"></div>
                    </div>
                </div>
                </div>
            </div>
            <!-- box end -->
         </div>
      </div>
   </div>
   <!-- footer -->
   <div id="footer">
      <div class="container">
         <div class="indent">
            <div class="fleft">Copyrights - Sibers Ashkana</div>
            <div class="fright"><b>(0312) 90-28-40</b></div>
         </div>
      </div>
   </div>
</body>
</html>

